package com.service;

import com.dao.ProMapper;
import com.pojo.Pro;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProService {

    @Resource
    private ProMapper proMapper;

    public List<Pro> findAll(Pro pro) {
        return proMapper.findAll(pro);
    }

    public Pro findById(Integer id) {
        return proMapper.findById(id);
    }

    public void insert(Pro pro) {
        proMapper.insert(pro);
    }

    public void update(Pro pro) {
        proMapper.update(pro);
    }

    public void deleteById(Integer id) {
        proMapper.deleteById(id);
    }
}
